package com.swinw.asumall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swinw.asumall.product.vo.AttrGroupRelationVo;
import com.swinw.asumall.product.vo.AttrRespVo;
import com.swinw.asumall.product.vo.AttrVo;
import com.swinw.common.utils.PageUtils;
import com.swinw.asumall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author 罗义华
 * @email 2407550328@qq.com
 * @date 2020-10-04 12:33:33
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catId);

    void saveAttr(AttrVo attr);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    void removeAttrAndGropu(List<Long> asList);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void relationDelete(List<AttrGroupRelationVo> asList);

    PageUtils getNoRelationAttr(Long attrgroupId, Map<String, Object> params);

    PageUtils querySaleAttr(Map<String, Object> params, Long catId);
}

